package com.ebupt.migu.music.propagate.mapper;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ebupt.migu.propagate.PropagateStrategy;

import java.util.List;

/**
 *  宣发策略
 * @author tz
 */
@DS("mysql_mg")
public interface PropagateStrategyMapper extends BaseMapper<PropagateStrategy> {

    default List<PropagateStrategy> qryByStatus(int status){
        return this.selectList(new QueryWrapper<PropagateStrategy>().lambda()
                .eq(PropagateStrategy::getExecuteStatus, status));
    }

}
